﻿@{
    ViewData["Title"] = "模拟交互获取WMS任务";
    Layout = "_Edit";
}
<article class="page-container">
    <form action="" method="post" class="form form-horizontal" id="form-add">
        
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">托盘码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" placeholder="请输入托盘码" id="containerCode" name="containerCode">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">交互设备号：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" placeholder="请输入设备号" id="equipment" name="equipment">
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">

                <input class="btn btn-primary radius" type="button" onclick="operate()" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

@section javascript {

    <script>

        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });
        function operate() {
            console.log($("#form-add").serialize())

            SubmitFormForAjax("/worktaskinfo/getworktaskfrommonitor", $("#form-add").serialize(), function (data) {
                if (data.result) {
                    popupAlert('提交成功', 1, function () { closePageLayer(true); });
                } else {
                    popupAlert(data.message, 2, function (data) { layer.close(data); });
                }
            }, true);
        }

    </script>
}